import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

// 标题组件
import SubTitle from "./components/SubTitle/index"
Vue.component('SubTitle', SubTitle)
// 状态栏组件
import Navbar from "./components/Navbar/index"
Vue.component('Navbar', Navbar)
// popup组件
import Popup from "./components/Popup/index"
Vue.component('Popup', Popup)
// popup选择组件
import PopupChoose from "./components/PopupChoose/index"
Vue.component('PopupChoose', PopupChoose)
// 公示栏组件
import Notice from "./components/Notice/index"
Vue.component('Notice', Notice)
// Tab组件
import Tabs from "./components/Tabs/index"
Vue.component('Tabs', Tabs)

import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

import '@/static/font/font.css';


import { webSrc, timeFormat, author, getStorage, prePage } from "@/common/mothed.js";
Vue.prototype.webSrc = webSrc;
Vue.prototype.$TimeFormat = timeFormat;
Vue.prototype.$author = author;
Vue.prototype.$getStorage = getStorage;
Vue.prototype.$prePage = prePage;


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif